import FormPhone from '../../../components/FormPhoneFirst'
import { connect } from 'dva'
const FormPhoneFirst = ({
  dispatch,
}) => {
  // 下一步
  const next = () => {
    dispatch({
      type: 'modules/getModules',
      payload: {
        title: '手机号修改',
        process: 'modifyPhone',
        businessId: '1231241219',
        pathname: '',
        tokenId: 'test',
      }
    })
  }
  // 此处传参数给公共模块 1.有参数值时候是旧手机号码验证(手机号码后端给) 2.无参数值时候是输入新手机号码可以
  
  const FormPhoneData = {
    next,
    // initValue: 13034567898,
    // disabledControl:true
  }
  return (
    <FormPhone {...FormPhoneData}></FormPhone>
  )
}
const mapAction = state => {
  return {
    modifyPhone:state.modifyPhone,
  }
}
export default connect(mapAction)(FormPhoneFirst)